import threading

def run1():
    print("run1")

t = threading.Timer(3, run1)

t.start()

t.join()
